namespace Rsdn.TreeGrid
{
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    /// <summary>
    /// Описание ячейки
    /// </summary>
    [StructLayout(LayoutKind.Sequential)]
    public struct CellInfo
    {
        [CompilerGenerated]
        private int ImageIndex_k__BackingField;
        [CompilerGenerated]
        private string ImageKey_k__BackingField;
        [CompilerGenerated]
        private System.Drawing.Image Image_k__BackingField;
        [CompilerGenerated]
        private Rsdn.TreeGrid.CellImageType CellImageType_k__BackingField;
        [CompilerGenerated]
        private string MediaTypeNames_Text_k__BackingField;
        [CompilerGenerated]
        private TextFormatFlags TextFormat_k__BackingField;
        /// <summary>
        /// Индекс картинки.
        /// </summary>
        public int ImageIndex
        {
            [CompilerGenerated]
            get
            {
                return this.ImageIndex_k__BackingField;
            }
            [CompilerGenerated]
            set
            {
                this.ImageIndex_k__BackingField = value;
            }
        }
        /// <summary>
        /// Ключ картинки.
        /// </summary>
        public string ImageKey
        {
            [CompilerGenerated]
            get
            {
                return this.ImageKey_k__BackingField;
            }
            [CompilerGenerated]
            set
            {
                this.ImageKey_k__BackingField = value;
            }
        }
        /// <summary>
        /// Картинка.
        /// </summary>
        public System.Drawing.Image Image
        {
            [CompilerGenerated]
            get
            {
                return this.Image_k__BackingField;
            }
            [CompilerGenerated]
            set
            {
                this.Image_k__BackingField = value;
            }
        }
        /// <summary>
        /// Тип картинки.
        /// </summary>
        public Rsdn.TreeGrid.CellImageType CellImageType
        {
            [CompilerGenerated]
            get
            {
                return this.CellImageType_k__BackingField;
            }
            [CompilerGenerated]
            set
            {
                this.CellImageType_k__BackingField = value;
            }
        }

        /// <summary>
        /// Текст ячейки.
        /// </summary>
        public string Text
        {
            [CompilerGenerated]
            get
            {
                return this.MediaTypeNames_Text_k__BackingField;
            }
            [CompilerGenerated]
            set
            {
                this.MediaTypeNames_Text_k__BackingField = value;
            }
        }

        /// <summary>
        /// Формат отрисовки текста.
        /// </summary>
        public TextFormatFlags TextFormat
        {
            [CompilerGenerated]
            get
            {
                return this.TextFormat_k__BackingField;
            }
            [CompilerGenerated]
            set
            {
                this.TextFormat_k__BackingField = value;
            }
        }

        public void Init()
        {
            ImageIndex = -1;
            ImageKey = string.Empty;
            CellImageType = CellImageType.Index;
            Text = string.Empty;
        }
    }
}

